<!DOCTYPE html>
<html lang="zh-cn">
<head>
    
	<meta charset="utf-8">
    <title>会员中心-{:C("site_name")}</title>
    <meta name="Keywords" content="会员中心-{:C("site_name")}">
    <meta name="Description" content="会员中心-{:C("site_name")}">
    <meta http-equiv="Cache-Control" content="no-transform" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link href="/Public/user/{:C('default_user')}/layui/css/layui.css" rel="stylesheet">
	<script src="/Public/user/{:C('default_user')}/layui/layui.js" charset="utf-8"></script>
	<script src="/Public/user/{:C('default_user')}/js/jquery-3.4.1.min.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/Public/user/{:C('default_user')}/css/comm.css" />
    <link rel="stylesheet" type="text/css" href="/Public/user/{:C('default_user')}/css/fwindow.css" />
   <link rel="stylesheet" type="text/css" href="/Public/user/{:C('default_user')}/css/publish.css" />



</head>
<body class="yunlist2" >

    <div class='new-main'>
  <include file="./Public/user/qz/Tpl/user_header.html" />
        
            <article class="article2">
                     <include file="./Public/user/qz/Tpl/left.html" />

					
					
					
					
					
					
					
					
					
	<div class="container layui-form">
                     
    <!-- 内容头部开始.. -->
    <nav class="nav2 boderBox">
        <div class="navContent navContentBorder boderBox noSelect" data-page="textNews">账号设置</div>
        <!-- <div class="navContent boderBox noSelect" data-page="picNews">图集稿件</div> -->
    </nav>
    <!-- 内容头部结束.. -->
    <!-- main内容区域开始 -->
    <div id="layerDemo"class="boderBox layui-form" >
      <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
     <label class="layui-form-label"> {$username}</label>
    </div>
  </div>


  <include file="./Public/user/qz/Tpl/img.html" />	  
<div class="layui-form-item">
    <label class="layui-form-label">用户昵称</label>
    <div class="layui-input-block">
      <input type="text" name="nickname" lay-verify="nickname" autocomplete="off" placeholder="用户昵称" class="layui-input" value="{$nickname}">
    </div>
  </div>
	 <div class="layui-form-item layui-form-text">
    <label class="layui-form-label">用户介绍</label>
    <div class="layui-input-block">
      <textarea placeholder="请输入内容" class="layui-textarea" name="remark">{$remark}</textarea>
    </div>
  </div>
<div class="layui-form-item">
    <div class="layui-input-block">
      <button type="submit" class="layui-btn" lay-submit="" lay-filter="login">立即提交</button>
     
    </div>
  </div>
        
    </div>
	
    <!-- main内容区域结束 -->

                </div>
            </article>
            
    <!-- 浮窗开始 -->
   
					
					
					
			<style>
		.layui-form-item {

    margin-top: 30px;

}
.layui-input-block {

    width: 500px;

}
.layui-form-item .layui-input-inline {
    float: left;
    width: 200px;
    margin-right: 10px;
}

body .demo-class .layui-layer-btn0{
    border-color: #E6E3E6;
    background-color: #FFF;
    color: black;
  }
  body .demo-class .layui-layer-btn1{
    border-color: #4898d5;
    background-color: #2e8ded;
    color: #fff;
  }

</style>			
					
					
					
					
					
					
			  <include file="./Public/user/qz/Tpl/top.html" />		
					
					
					
					
					
					
					
					
					
            </article>
            
        
    </div>
  <include file="./Public/user/qz/Tpl/user_footer.html" />
<div class="footer_space"></div>
  
<script>

layui.use(['form', 'layedit', 'upload'], function(){
  var $ = layui.jquery
  ,form = layui.form
  ,layer = layui.layer
	,upload = layui.upload;
    //自定义验证规则
 

  //监听提交
  form.on('submit(login)', function(data){
  

		
		$.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/record')}" ,//url
                data:{
                    "nickname":data.field.nickname,
                    "remark":data.field.remark,
					"img":data.field.avatar_img
                },
                success: function (result) {
                  console.log(result);
                    if (result.code == 1) {
                       layer.msg(result.msg,{'icon':2});
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(result.url,2000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });
   
    return false;
  });
 

  
});
     //刷新验证码

</script>

</body>
</html>
